package cn.zl.ymcc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员基本信息
 * </p>
 *
 * @author zl
 * @since 2025-10-18
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("t_user_base_info")
public class UserBaseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_time")
    private Long updateTime;

    /**
     * 注册渠道
     */
    @TableField("reg_channel")
    private Byte regChannel;

    /**
     * QQ
     */
    @TableField("qq")
    private String qq;

    /**
     * 用户等级
     */
    @TableField("level")
    private Byte level;

    /**
     * 成长值
     */
    @TableField("grow_score")
    private Integer growScore;

    /**
     * 推荐人
     */
    @TableField("refer_id")
    private Long referId;

    /**
     * 性别
     */
    @TableField("sex")
    private Byte sex;

    /**
     * 生日
     */
    @TableField("birthday")
    private LocalDate birthday;

    @TableField("area_code")
    private String areaCode;

    @TableField("address")
    private String address;
}